package com.hs.room.model.material


import android.util.Log
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import java.util.Date

/**
 * 物料
 */
@Entity(tableName = "tb_materials")
data class Materials(
    @PrimaryKey(autoGenerate = true)
    val id : Long,
    val materialName:String,
    @ColumnInfo
    val createTime:String,
    @ColumnInfo
    val updateTime:String,
    @ColumnInfo
    val createTimestamp : Long,
    @ColumnInfo
    val updateTimestamp : Long,
    @ColumnInfo
    val createBy:String,
    @ColumnInfo
    val updateBy:String,
    // 是否有效
    @ColumnInfo
    val enable : Boolean,
    //单位
    @ColumnInfo
    val unitName : String,
    // 单位ID
    @ColumnInfo
    val unitId: Long,
    // 数量
    @ColumnInfo
    val quantity : Int,
    @ColumnInfo
    val price :Double,
    // 供应商
    @ColumnInfo
    val supplierId : Long,
    // 物料类型
    @ColumnInfo
    val materialType : Int,
    // 物料等级
    @ColumnInfo
    val materialLevel : Int
)
